package Thread;

public class demo9 {
    public static void main(String[] args) {
        Thread t = new Thread();
        Thread t1 = new Thread(() -> {
           synchronized(t) {
               try {
                   Thread.sleep(1000);
               } catch (InterruptedException e) {
                   throw new RuntimeException(e);
               }
               synchronized (t) {
                   System.out.println("t正在运行");
               }
           }
        });
        t1.start();
    }
}
